//
//  BaseTableViewController.h
//  XNet
//
//  Created by easystudio on 6/23/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EGORefreshTableFooterView.h"
#import "EGORefreshTableHeaderView.h"
#import "UserTaskDelegate.h"

typedef enum loadType{
GET_MORE_LOAD = 0,
REFRESH_LOAD
} LOAD_TYPE;

@interface BaseTableViewController : UITableViewController <EGORefreshTableFooterDelegate, UITableViewDelegate, UITableViewDataSource, UserTaskDelegate, EGORefreshTableHeaderDelegate>{

    LOAD_TYPE _eLoadType;
    
    EGORefreshTableHeaderView *_refreshHeaderView;
    EGORefreshTableFooterView *_refreshFooterView;    
    
    BOOL _bIsLoading;
}
@property (nonatomic, retain) EGORefreshTableHeaderView *_refreshHeaderView;
@property (nonatomic, retain) EGORefreshTableFooterView *_refreshFooterView;
-(void) getMoreData;
-(void) refreshData;
-(void) pushViewController:(UIViewController*) viewController;

@end
